WordRedraw
LHElement element of LHTable (line-height table) StScrpRec describes runs of styles; format of an 'styl' desk scrap entry NullStRec style information used when no selection typedef short TEIntHook;
typedef pascal Boolean (*WordBreakProcPtr)(Ptr text, short charPos); typedef pascal Boolean (*ClikLoopProcPtr)(void); teForceLeft -2 (this one's from TechNote 207)
teJustRight -1
teJustLeft 0
teJustCenter 1
al.
doFace 2 See Style Mode
doSize 4
doColor 8
doAll 15
addSize 16
doToggle 32
doBColor 8192 set the background color
doMode 16384 set txMode
doFontName 32768 set txFont from font name
intDrawHook 1 (from TN 207)
intWidthHook 2
intHitTestHook 3
New names for the Justification styles
teFlushDefault 0 flush according to the line direction
teCenter 1 center justify
teFlushRight -1 flush right for all scripts
teFlushLeft -2 flush left for all scripts
Set/Replace style modes
fontBit 0 set font
faceBit 1 set face
sizeBit 2 set size
clrBit 3 set color
addSizeBit 4 *add size mode
toglBit 5 set faces in toggle mode
doFont 1 set font (family) number
doFace 2 set character style
doSize 4 set type size
doColor 8 set color
doAll 15 set all attributes
addSize 16 adjust type size
HITTESTHook 12 [ProcPtr] TEHitTestHook nWIDTHHook 24 [ProcPtr] nTEWidthHook TextWidthHook 28 [ProcPtr] TETextWidthHook intEOLHook 0 TEIntHook value
intDrawHook 1 TEIntHook value
intWidthHook 2 TEIntHook value
intHitTestHook 3 TEIntHook value
intNWidthHook 6 TEIntHook value for new version of WidthHook
intTextWidthHook 7 TEIntHook value for new TextWidthHook
teFAutoScr 0 00000001b
teFTextBuffering 1 00000010b
teFOutlineHilite 2 00000100b
teFInlineInput 3 00001000b
teFUseTextServices 4 00010000b
TEBitClear 0
TEBitSet 1 set the selector bit
TEBitTest -1 no change; just return the current setting
Constants for identifying the routine that called FindWord teWordSelect 4 clickExpand to select word
teWordDrag 8 *clickExpand to drag new word
teFromFind 12 FindLine called it ($0C)
teFromRecal 16 RecalLines called it ($10)
Do not use low memory global variables that are not documented.
No undocumented location below the system heap is guaranteed to be available
for use in future systems.
Name Address Size Description
TEDoText 0x0A70 4 ProcPtr addr of TextEdit multi-purpose rtn TERecal 0x0A74 4 ProcPtr addr of line-start recalculation rtn TEScrpHandle 0x0AB4 4 Handle leading to TE internal scrap TEScrpLength 0x0AB0 2 length of TextEdit internal scrap
TESysJust 0x0BAC 2 the default line direction (left to right or right to left)
WordRedraw 0x0BA5 1 Value that indicates how much of a line must be
redrawn after a character is entered